

<?php
/**
 * Common Template - tpl_header.php
 *
 * this file can be copied to /templates/your_template_dir/pagename<br />
 * example: to override the privacy page<br />
 * make a directory /templates/my_template/privacy<br />
 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
 * to override the global settings and turn off the footer un-comment the following line:<br />
 * <br />
 * $flag_disable_header = true;<br />
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_header.php 3392 2006-04-08 15:17:37Z birdbrain $
 */
?>

<?php
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']));
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message']);
} else {

}
?>


<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>



<div id="headerWrapper">
	
<div id="dummydiv" style="height: 20px;"></div>

<div id="logotop">

<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse" id="tbllogotop">
	<tr>
		<td width="9px"><a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG ?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logobg-left.gif'); ?></a></td>
		<td valign="top">
			

<a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG ?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.gif'); ?></a>
			
			
			</td>
		<td width="9px"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logobg-right.gif'); ?></td>
	</tr>
</table>


<!--bof-navigation display-->
<div id="navMainWrapper">

<div id="navMain">
    <ul class="forward">
		
	<li><a href="http://www.lucklaser.com" alt="Laser Pointer" title="Laser Pointer">English</a></li>
	<li>&nbsp;&nbsp;&nbsp;&nbsp;</li>
		
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
<?php
      } else {
        if (STORE_STATUS == '0') {
?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
<?php } } ?>

<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>


</ul>
</div>
 <!-- <br class="clearBoth" /> -->
</div>
<!--eof-navigation display-->



<!-- cart icon -->
<div id="cart_top"><a href="<?php echo HTTP_SERVER . DIR_WS_CATALOG ?>index.php?main_page=shopping_cart"><?php echo BOX_HEADING_SHOPPING_CART; ?></a><br /><? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></div>
<!-- cart icon -->

</div> <!-- logotop -->	



<div id="topmenubar">

			
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->


</div><!-- topmenubar -->









<div id="navCurrenciesWrapper">

                <div class="nav_language">
    
                    <?php echo BOX_HEADING_LANGUAGES ?>&nbsp;
                
                    <?php if (!isset($lng) || (isset($lng) && !is_object($lng))) {
                        $lng = new language;
                      }
                    
                      reset($lng->catalog_languages);
                    
                      while (list($key, $value) = each($lng->catalog_languages)) {
                        echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], '', '', ' style="vertical-align:middle;"') . '</a>&nbsp;';
                      }
                     ?>
                     
                    
    
                </div>  <!-- nav_language -->
                
                <div class="nav_currencies">
                    

                
                    <?=zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>
    
                    <?
                    
                        if (isset($currencies) && is_object($currencies)) {
                    
                          reset($currencies->currencies);
                          $currencies_array = array();
                          while (list($key, $value) = each($currencies->currencies)) {
                            $currencies_array[] = array('id' => $key, 'text' => $value['title']);
                          }
                    
                          $hidden_get_variables = '';
                          reset($_GET);
                          while (list($key, $value) = each($_GET)) {
                            if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
                              $hidden_get_variables .= zen_draw_hidden_field($key, $value);
                            }
                          }
                        }
                    
                    ?><?=zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], ' onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?></form>
    

    
                </div> <!-- nav_currencies -->
                
                

                 <div class="clearBoth"></div>
 

<div class="header-search">

<?php

  $content = "";
  $content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
  $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
  $content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();

  $content .= '<div class="searchinput">'. zen_draw_input_field('keyword', '', 'size="6" maxlength="30" style="width: 160px" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"') . '</div><input class="button-search-header" type="image" src="' . $template->get_template_dir('', DIR_WS_TEMPLATE, $current_page_base,'images') . '/sbutton.gif' . '" value="Serch" />' /*. zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON)*/;
  $content .= "</form>";
  echo($content);
?>

</div><!-- header-search -->

</div> <!-- navCurrenciesWrapper -->





<div id="headerContent">

<!-- <div id="nameWrapper"><?php //echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . STORE_NAME . '</a>' ?></div>  -->
   
<?php
              if (HEADER_SALES_TEXT != '') {
?>
<!-- <div id="taglineWrapper"><?php// echo HEADER_SALES_TEXT ;?></div> -->
<?php
              }
?>
</div><!-- headerContent -->


<?php if (!$this_is_home_page) { ?>

<div id="headerpic">
	
<?php
    if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                if ($banner->RecordCount() > 0) {
?>
      <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
	  
	 <?php } } ?>
</div>

<?php } ?>





<!--bof-branding display-->


<!-- <br class="clearBoth" /> -->
<!--eof-branding display-->

<!--eof-header logo and navigation display-->

<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); 
?>
<!--eof-optional categories tabs navigation display-->


</div> <!-- headerWrapper -->
<?php } ?>



